package cn.ithers.blog.service;

import cn.ithers.blog.dto.ArticleDTO;
import cn.ithers.blog.dto.UpdateArticleDTO;
import cn.ithers.blog.response.ResponseResult;

/**
 * @Author: zhanghuan
 * @date: 2020/10/6 7:58
 * @description:
 */
public interface IArticleService {
    ResponseResult postArticle(ArticleDTO articleDTO);


    ResponseResult articleList(int page, int pageSize, String keyword, String categoryId, String state);

    ResponseResult getArticleById(String articleId);

    ResponseResult updateArticle(String articleId, UpdateArticleDTO updateArticleDTO);

    ResponseResult deleteArticleById(String articleId);

    ResponseResult deleteArticleByState(String articleId);

    ResponseResult topArticle(String articleId);

    ResponseResult listTopArticle();

    ResponseResult listRecommendArticle(String articleId, int size);

    ResponseResult articleListByLabel(int page, int pageSize, String label);

    ResponseResult listLabels(int size);
}
